<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
String contextPath=request.getContextPath();
request.setAttribute("contextPath", contextPath);
%>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<title>Insert title here</title>
</head>
<body>
<c:if test="${not empty LOGIN_USER_KEY_IN_SESSION }">
<b>${LOGIN_USER_KEY_IN_SESSION.userName }</b>欢迎你!
</c:if>
	<table width="80%" border="1">
		<tr>
			<td>specialId</td>
			<td>bookId</td>
			<td>bookName</td>
			<td>specialPrice</td>
			<td>操作</td>			
		</tr>
		<c:forEach items="${map }" var="specialBook">
			<tr>
				<td>${specialBook.special_id }</td>
				<td>${specialBook.special_book_id }</td>
				<td>${specialBook.book_name }</td>
				<td>${specialBook.special_price }</td>
				<td><a href="${contextPath }/book1/${specialBook.special_book_id }">查看图书</a></td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>